﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchBug.aspx.cs" Inherits="Workflow.SearchBug" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <script type="text/javascript" src="../Scripts/MyJquery.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.pagination.js"></script>
    <script type="text/javascript" src="../Scripts/Pageination.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">项目名称</td>
                <td><asp:DropDownList ID="ddlPName" runat="server" >
                    <asp:ListItem>模具智造系统</asp:ListItem>
                    </asp:DropDownList></td>
                <td class="tableleft">节点名称</td>
                <td><asp:DropDownList ID="ddlNodeName" runat="server" >
                    <asp:ListItem></asp:ListItem>
                    </asp:DropDownList></td>
                <td class="tableleft">模块名称</td>
                <td><asp:DropDownList ID="ddlMName" runat="server" >
                    <asp:ListItem>全部</asp:ListItem>
                    <asp:ListItem>MES-专案系统</asp:ListItem>
                    <asp:ListItem>MES-模具设计系统</asp:ListItem>
                    <asp:ListItem>MES-工艺系统</asp:ListItem>
                    <asp:ListItem>MES-CNC CAM系统</asp:ListItem>
                    <asp:ListItem>MES-电极设计系统</asp:ListItem>
                    <asp:ListItem>MES-WC编程系统</asp:ListItem>
                    <asp:ListItem>MES-CAM QC系统</asp:ListItem>
                    <asp:ListItem>MES-CNC加工管理系统</asp:ListItem>
                    <asp:ListItem>MES-EDM加工管理系统</asp:ListItem>
                    <asp:ListItem>MES-WC加工管理系统</asp:ListItem>
                    <asp:ListItem>MES-CMM检测系统</asp:ListItem>
                    <asp:ListItem>MES-电极备料系统</asp:ListItem>
                    <asp:ListItem>MES-装夹系统</asp:ListItem>
                    <asp:ListItem>MES-刀具管理系统</asp:ListItem>
                    <asp:ListItem>MES-外协管理系统</asp:ListItem>
                    <asp:ListItem>MES-生产计划系统</asp:ListItem>
                    <asp:ListItem>MES-仓库管理系统</asp:ListItem>
                    <asp:ListItem>SAP系统</asp:ListItem>
                    <asp:ListItem>治具系统</asp:ListItem>
                    </asp:DropDownList></td>
                <td>
                    <asp:Button ID="Button1" CssClass="btn btn-primary" runat="server" Text="查询" OnClientClick="return Validate()" OnClick="BtnSubmit_Click"/>
                </td>
            </tr>
             <%--<tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="BtnSubmit" CssClass="btn btn-primary" runat="server" Text="查询" OnClientClick="return Validate()" OnClick="BtnSubmit_Click"/>
                </td>
            </tr>--%>
         </table>
    </div>
    <div>
     
         <table class="table table-bordered definewidth m10">
            <thead>
                <tr>
                    <th>Id</th>
                    <th>创建时间</th>
                    <th>完成时间</th>
                    <th>紧急程度</th>
                    <th>项目名称</th>
                    <th>问题描述</th>
                    <th>项目责任人</th>
                    <th>提报人</th>

                </tr>               
            </thead>
            <tbody id="Searchresult"></tbody>
            <tbody id="hiddenresult" style="display:none">
                <% for (int i = 0; i < resultList.Count; i++) { %>
                <tr class="result">
                    <td><% =resultList[i].WorkParentId %></td>
                    <%if(resultList[i].CreateTime.ToString("yyyy-MM-dd")=="0001-01-01"){%>
                        <td></td>
                    <%}else{ %>
                        <td><% =resultList[i].CreateTime %></td>
                    <%}%>
                    <%if(resultList[i].CompleteDay.ToString("yyyy-MM-dd")=="0001-01-01"){%>
                        <td></td>
                    <%}else{ %>
                        <td><% =resultList[i].CompleteDay %></td>
                    <%}%>
                    <td><% =resultList[i].WorkParent.Critical %></td>
                    <td><% =resultList[i].PName %></td>
                    <td><% =resultList[i].QuestionDescription %></td>
                    <td><% =resultList[i].MoldPerson %></td>
                    <td><% =resultList[i].WorkParent.CreaterDisplayName %></td>
                </tr>
                <% }%>
            </tbody>
         </table>
         <div id="Pagination" class="pagination definewidth m10"></div>
    </div>
    </form>
    <script type="text/javascript">
       $(document).ready(function () {
            var count = "<% =resultList.Count%>";
            if(count>= 10){
                $("#Pagination").show();
            } else {
                $("#Pagination").hide();
            }
        });
    </script>
</body>
</html>
